<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/config/c.tld" prefix="c"%>
<%@ taglib prefix="fn" uri="/WEB-INF/config/fn.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/config/fmt.tld"%>
<%@ taglib uri="/WEB-INF/config/Pagination.tld" prefix="p"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>用户管理</title>
	<script src="Metro/js/jquery-1.9.1.min.js"></script>
</head>
<body>
<ul class="breadcrumb">
	<li><a href="index.html">首页</a><i class="icon-angle-right"></i></li>
	<li><a href="#">用户管理</a></li>
</ul>
<div class="pull-right box">
	<a href="user/manage/userinitAdd.html">
		<button class="btn btn-small btn-primary">
			<i class="halflings-icon plus white white star"></i>
			点击添加信息
		</button>
	</a>
</div>
<div class="row-fluid ">
	<form action="user/manage/userlist.html" id="myform" class="form-horizontal" method="post">
		<div class="box span12">
			<div class="box-header" data-original-title>
				<h2>
					<i class="halflings-icon white edit"></i><span class="break"></span>用户信息
				</h2>
				<div class="box-icon">
					<a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a>
				</div>
			</div>
			<div class="box-content">

				<table id="datatable" class="table table-striped table-bordered table-hover dataTable">
					<thead>
					<tr>
						<th width=40>序号</th>
						<th>账号</th>
						<th>密码</th>
						<th>真实姓名</th>
						<th>联系方式</th>
						<th>用户角色</th>
						<th width=160>操作</th>
					</tr>
					</thead>
					<tbody role="alert" aria-live="polite" aria-relevant="all">
					<c:forEach items="${paging }" var="al" varStatus="index">
						<tr>
							<td class="sorting_1">${index.index+1 }</td>
							<td class="sorting_1">${al.userName}</td>
							<td class="sorting_1">${al.passWord}</td>
							<td class="sorting_1">${al.realname}</td>
							<td class="sorting_1">${al.phoneNum}</td>
							<td class="sorting_1">${al.role.name}</td>
							<td class="center">
								<a class="btn btn-info" href="user/manage/userupdate/${al.id}.html" title="修改 ">
									<i class="halflings-icon white edit"></i>
								</a>
								<a class="btn btn-danger" href="user/manage/userdelete/${al.id }.html" title="删除"
									 onclick="return confirm('删除以后数据将不可恢复\n确定删除吗？')">
									<i class="halflings-icon white trash"></i>
								</a>
							</td>
						</tr>
						<c:if test="${paging.size()==0}">
							<tr>
								<td colspan="5" class="grade even center align-items-center" height="200">
									没有"用户"数据信息
								</td>
							</tr>
						</c:if>
					</c:forEach>
					</tbody>
				</table>

			</div>
		</div>
	</form>
</div>

</body>
</html>
